//
//  IMAdStrategyService.h
//  DualMediationSDK
//
//  广告策略服务
//  Created by YeJary on 2025/7/15.
//

#import <Foundation/Foundation.h>
#import "IMAdStrategyModels.h"

NS_ASSUME_NONNULL_BEGIN

/**
 * 广告策略服务类
 * 负责处理广告策略相关的网络请求
 */
@interface IMAdStrategyService : NSObject

/**
 * 单例实例
 */
+ (instancetype)sharedService;

/**
 * 获取广告策略
 * @param appId 应用ID
 * @param uuid 用户唯一ID
 * @param success 成功回调
 * @param failure 失败回调
 */
- (void)getAdStrategyWithAppId:(NSString *)appId
                          uuid:(NSString *)uuid
                       success:(void(^)(IMAdStrategyResponse *response))success
                       failure:(void(^)(NSError *error))failure;

/**
 * 获取广告策略（使用请求模型）
 * @param request 广告策略请求模型
 * @param success 成功回调
 * @param failure 失败回调
 */
- (void)getAdStrategyWithRequest:(IMAdStrategyRequest *)request
                         success:(void(^)(IMAdStrategyResponse *response))success
                         failure:(void(^)(NSError *error))failure;

@end

NS_ASSUME_NONNULL_END